package homework.day01;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        System.out.println("请输入用户名：");
        Scanner scanner = new Scanner(System.in);
        String username = scanner.nextLine().trim();
        int len = username.length();
        if(len>=5&&len<=10){
            System.out.println("验证通过！");
        }else{
            System.out.println("验证失败！");
        }
    }
}
